const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  // publicPath: process.env.NODE_ENV === "development"?'':'/dist',
  // outputDir:'publicService',
  transpileDependencies: true,
  devServer: {
    proxy: {
      //配置跨域
      "/api": {
        target: "http://222.91.125.138:19779",
        changOrigin: true, //允许跨域
        pathRewrite: {
          "^/api": "/",
        },
      },
    },
  }
})
